package com.lottery.material.entity.promotion;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Description：推广收费配置表
 * Created by 朱正磊 on 2019-04-09 10:33
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_promotion_fee_config")
public class PromotionFeeConfig extends BaseEntity {

    private static final long serialVersionUID = 7668921802082046120L;

    @Column(columnDefinition = "int(11) comment '推广规则id（material_promotion_rule_config表主键）'")
    private Integer promotionRuleId;

    @Column(columnDefinition = "decimal(19,2) comment '收费金额'")
    private BigDecimal chargeAmount;

    @Column(columnDefinition = "int(2) comment '排序'")
    private Integer sort;

    @Column(columnDefinition = "int(1) not null default '1' comment '是否删除（1：否；2：是）'")
    private Integer isDelete;

}
